package com.ysd.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ysd.entity.OrderForm;
import com.ysd.entity.Product;
import com.ysd.entity.User;
import com.ysd.mapper.OrderFormMapper;
import com.ysd.service.OrderFormService;

@Service
public class OrderFormServiceImpl implements OrderFormService {

	@Autowired
	private OrderFormMapper orderFormMapper;

	@Override
	public List<OrderForm> findOrderForm(int uid) {
		return orderFormMapper.getOrderForm(uid);
	}

	@Override
	public int delectOrderForm(OrderForm orderForm) {
		return orderFormMapper.delectOrderForm(orderForm);
	}

	@Override
	public List<OrderForm> getOrder(OrderForm of,Product product,User user) {
		// TODO Auto-generated method stub
		return orderFormMapper.getOrder(of,product,user);
	}

	@Override
	public int getCount(OrderForm of,Product product,User user) {
		// TODO Auto-generated method stub
		return orderFormMapper.getCount(of,product,user);
	}

	@Override
	public int getTiJiao(OrderForm orderForm) {
		// TODO Auto-generated method stub
		return orderFormMapper.getTiJiao(orderForm);
	}

	@Override
	public List<OrderForm> faHuo(int uid) {
		return orderFormMapper.faHuo(uid);
	}

	
	@Override
	public List<OrderForm> faHuo1(int uid) {
		return orderFormMapper.faHuo1(uid);
	}

	@Override
	public List<OrderForm> shouHuo(int uid) {
		return orderFormMapper.shouHuo(uid);
	}

	@Override
	public List<OrderForm> shouHuo1(int uid) {
		return orderFormMapper.shouHuo1(uid);
	}

	@Override
	public int updateOrderForm(OrderForm of) {
		return orderFormMapper.updateOrderForm(of);
	}


	@Override
	public List<OrderForm> shiFouFaHuo() {
		return orderFormMapper.shiFouFaHuo();
	}

	@Override
	public List<OrderForm> shiFouShouHuo() {
		return orderFormMapper.shiFouShouHuo();
	}

	@Override
	public int updateFaHuo(OrderForm orderform) {
		return orderFormMapper.updateFaHuo(orderform);
	}

	
}
